<?php

$TCA['image'] = array(
	'ctrl' => $TCA['image']['ctrl'],
	'interface' => array(
		'showRecordFieldList' => 'pid,hidden,title,description,path',
	),
	'types' => array(
		'1' => array('showitem' => 'pid,hidden,title,description,path')
	),
	'palettes' => array(
		'1' => array('showitem' => '')
	),
	'columns' => array(
		'hidden' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:media/Resources/Private/Language/locallang_db_image.xml:image.hidden',
			'config'  => array(
				'type' => 'check',
			),
		),
		'title' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:media/Resources/Private/Language/locallang_db_image.xml:image.title',
			'config'  => array(
				'type' => 'input',
				'size' => 128,
				'eval' => 'trim,required',
			),
		),
		'description' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:media/Resources/Private/Language/locallang_db_image.xml:image.description',
			'config'  => array(
				'type' => 'text',
				'cols' => '30',
				'rows' => '5',
			)
		),
		'path' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:media/Resources/Private/Language/locallang_db_image.xml:image.path',
			'config'  => array(
				'type'          => 'group',
				'internal_type' => 'file',
				'allowed'       => 'jpg,png,gif,jpeg',
				'max_size'      => 300000000,
				'uploadfolder'  => 'uploads/tx_media/',
				'show_thumbs'   => 0,
				'size'          => 1,
				'maxitems'      => 1,
				'minitems'      => 1,
			),
		),
	),
);

?>